<template>
	<view class="indexMosk">
		<view class="indexMosk-box" v-if="isHiden==2">
			<text>当日报名次数已达上限 </text>
			<text>升级至{{(taskDetail.userIdentityStatus==0&&'正式')||(taskDetail.userIdentityStatus==1&&'金牌')|| ' '}}零工可以提升报名次数</text>
			<view class="">
			</view>
			<view class="">
				<view class="">
					<view class=""> </view>
					<view class=""> 报名次数 </view>
				</view>
				<view class="">
					<view class="">
						{{(taskDetail.userIdentityStatus==0&&'试用权益')||(taskDetail.userIdentityStatus==1&&'正式权益')||(taskDetail.userIdentityStatus==2&&'金牌权益')}}
					</view>
					<view class="">
						{{(taskDetail.userIdentityStatus==0&&'2/2')||(taskDetail.userIdentityStatus==1&&'3/3')||(taskDetail.userIdentityStatus==2&&'5/5')}}
					</view>
					<!-- taskDetail.userIdentityStatus-->
				</view>
				<view class="">
					<view class="">
						{{(taskDetail.userIdentityStatus==0&&'正式权益')||(taskDetail.userIdentityStatus==1&&'金牌权益')|| ' '}}
					</view>
					<view class="">
						{{(taskDetail.userIdentityStatus==0&&'0/3')||(taskDetail.userIdentityStatus==1&&'0/5')||' '}}
					</view>
				</view>
			</view>
			<view class="">
				<view class="" @click="close(1)"> 我知道了 </view>
				<view class="" @click="toHelp"> 更多权益 </view>
			</view>
		</view>
		<view class="indexMosk-content" v-if="isHiden==1">
			<view class="">
				<view class=""> 金牌专属 </view>
				<view>您还不是金牌身份，继续努力哦~</view>
				<view class="">
				</view>
				<view class="last">
					<view class="">
						<view class="" style="text-align: center;"> 试用零工 </view>
						<view class=""> 普通任务 </view>
					</view>
					<view class="" style="margin-left: 40rpx;">
						<view class="" style="text-align: center;"> 正式零工 </view>
						<view class=""> 普通任务 </view>
					</view>
					<view class="">
						<view class=""> 金牌零工 </view>
						<view class=""> 普通任务 </view>
						<view class=""> 金牌任务 </view>
					</view>
				</view>
			</view>
			<view class="">
				<view class="" @click="close(2)"> 我知道了 </view>
				<view class="" @click="toHelp"> 更多权益 </view>
			</view>
		</view>
	</view>
</template>
<script>
	export default ({
		name: 'bullet',
		props: {
			isHiden: {
				type: String,
				default: '0'
			},
			taskDetail: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {}
		},
		methods: {
			// 关闭金牌
			close(e) {
				this.$emit('toClose', e)
			},
			// 查看更多
			toHelp() {
				uni.navigateTo({
					// url: '/pages/help/help'
					url: '/pages/equity/equity'
				})
			},
		},
	})
</script>
<style lang="scss" scoped>
	.indexMosk {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 100vw;
		background: rgba(0, 0, 0, 0.7);
		z-index: 999;
		display: flex;
		justify-content: center;
		align-items: center;

		&-box {
			width: 630rpx;
			height: 652rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 6rpx 24rpx 2rpx rgba(32, 30, 30, 0.64), inset 1rpx 1rpx 0rpx 2rpx rgba(150, 153, 163, 0.21);
			border-radius: 24rpx;
			opacity: 1;
			border: 2rpx solid rgba(150, 153, 163, 0.4);
			display: flex;
			flex-direction: column;
			align-items: center;

			&>text:nth-child(1) {
				font-weight: bold;
				color: #262626;
				font-size: 32rpx;
				margin-top: 40rpx;
			}

			&>text:nth-child(2) {
				font-weight: bold;
				color: #8E8E8E;
				font-size: 28rpx;
				margin: 14rpx 0 30rpx;
			}

			&>view:nth-child(3) {
				box-shadow: 0px 2rpx 2rpx 2rpx rgba(196, 196, 196, 0.34);
				width: 630rpx;
				height: 2rpx;
			}

			&>view:nth-child(4) {
				display: flex;
				justify-content: space-between;
				margin-top: 44rpx;

				&>view:nth-child(1) {
					&>view:first-child {
						width: 215rpx;
						border-bottom: 2rpx solid #CFCED2;
						margin-top: 122rpx;
					}

					&>view:last-child {
						width: 206rpx;
						margin: 22rpx 0 0 12rpx;
						font-size: 32rpx;
						font-weight: 800;
						color: #737373;
					}
				}

				&>view:nth-child(2) {
					width: 160rpx;
					height: 246rpx;
					background: #FFFFFF;
					box-shadow: 0rpx 4rpx 24rpx 2rpx rgba(216, 226, 252, 0.8);
					border-radius: 24rpx;
					opacity: 1;
					display: flex;
					align-items: center;
					flex-direction: column;
					justify-content: center;
					background: url('../../static/icon3/grow/now.png') top left/auto no-repeat;

					&>view:first-child {
						color: #515151;
						font-size: 28rpx;
					}

					&>view:last-child {
						margin-top: 50rpx;
						font-weight: 800;
						color: #FF3F00;
						font-size: 32rpx;
					}
				}

				&>view:nth-child(3) {
					&>view:first-child {
						width: 206rpx;
						border-bottom: 2rpx solid #CFCED2;
						margin-top: 65rpx;
						font-size: 28rpx;
						color: #515151;
						font-family: PingFang SC-Regular, PingFang SC;
						text-align: center;
						margin-bottom: 22rpx;
						height: 60rpx;
					}

					&>view:last-child {
						font-size: 32rpx;
						font-weight: 800;
						color: #262626;
						text-align: center;
						margin-top: 22rpx;
					}
				}
			}

			&>view:nth-child(5) {
				display: flex;
				width: 570rpx;
				justify-content: space-between;
				margin-top: 70rpx;

				&>view:first-child {
					width: 254rpx;
					height: 94rpx;
					background: #F1F1F5;
					box-shadow: inset 1rpx 1rpx 0rpx 1rpx #F1F1F5;
					border-radius: 12rpx;
					opacity: 1;
					border: 2rpx solid rgba(0, 0, 0, 0);
					color: #7F7F7F;
					text-align: center;
					line-height: 94rpx;
				}

				&>view:last-child {
					width: 254rpx;
					height: 94rpx;
					background: #FCC92D;
					box-shadow: 0rpx 6rpx 12rpx 1rpx rgba(252, 201, 45, 0.3);
					border-radius: 12rpx;
					opacity: 1;
					color: #262626;
					text-align: center;
					line-height: 94rpx;
				}
			}
		}

		&-content {
			width: 630rpx;
			height: 684rpx;
			background: #FFF;
			box-shadow: 0rpx 6rpx 24rpx 2rpx rgba(32, 30, 30, 0.64), inset 1rpx 1rpx 0rpx 2rpx rgba(150, 153, 163, 0.21);
			border-radius: 24rpx;
			opacity: 1;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-between;

			&>view:nth-child(1) {
				&>view:nth-child(1) {
					background: url('../../static/icon3/grow/tip.png') top left/auto no-repeat;
					width: 100%;
					height: 54rpx;
					color: #FFF;
					font-size: 28rpx;
					line-height: 1.6;
					text-indent: 0.3em;
				}

				&>view:nth-child(2) {
					display: block;
					font-size: 32rpx;
					font-weight: bold;
					color: #262626;
					line-height: 0px;
					text-align: center;
					width: 100%;
					margin: 40rpx 0 60rpx;
				}

				&>view:nth-child(3) {
					box-shadow: 0px 2rpx 2rpx 2rpx rgba(196, 196, 196, 0.34);
					width: 630rpx;
					height: 2rpx;
				}

				&>view:last-child {
					display: flex;
					width: 570rpx;
					margin: 200rpx auto 0;

					&>view:nth-child(1) {
						margin-left: 68rpx;
					}

					&>view:nth-child(2) {
						margin-left: 62rpx;
					}

					&>view:nth-child(3) {
						margin-left: 32rpx;
					}

					&>view:nth-child(1),
					&>view:nth-child(2) {
						margin-top: -60rpx;

						&>view:nth-child(1) {
							font-size: 24rpx;
							color: #8F8F8F;
							margin-bottom: 52rpx;
						}

						&>view:nth-child(2) {
							font-size: 28rpx;
							color: #8F8F8F;
							font-weight: 800;
						}
					}

					&>view:nth-child(3) {
						width: 160rpx;
						height: 272rpx;
						background: #FFFFFF;
						box-shadow: 0rpx 4rpx 24rpx 2rpx rgba(216, 226, 252, 0.8);
						border-radius: 24rpx;
						opacity: 1;
						align-self: center;
						text-align: center;

						&>view:nth-child(1) {
							margin-top: 72rpx;
							color: #262626;
							font-size: 24rpx;
						}

						&>view:nth-child(2) {
							margin-top: 40rpx;
							color: #262626;
							font-weight: 800;
							font-size: 28rpx;
						}

						&>view:nth-child(3) {
							color: #262626;
							font-weight: 800;
							font-size: 28rpx
						}
					}
				}

				&>.last {
					width: 570rpx;
					height: 1rpx;
					opacity: 1;
					border: 2rpx solid #CFCED2;
				}
			}

			&>view:last-child {
				display: flex;
				width: 570rpx;
				justify-content: space-between;
				margin-bottom: 30rpx;

				&>view:first-child {
					width: 254rpx;
					height: 94rpx;
					background: #F1F1F5;
					box-shadow: inset 1rpx 1rpx 0rpx 1rpx #F1F1F5;
					border-radius: 12rpx;
					opacity: 1;
					border: 2rpx solid rgba(0, 0, 0, 0);
					color: #7F7F7F;
					text-align: center;
					line-height: 94rpx;
				}

				&>view:last-child {
					width: 254rpx;
					height: 94rpx;
					background: #FCC92D;
					box-shadow: 0rpx 6rpx 12rpx 1rpx rgba(252, 201, 45, 0.3);
					border-radius: 12rpx;
					opacity: 1;
					color: #262626;
					text-align: center;
					line-height: 94rpx;
				}
			}
		}
	}
</style>